import React from 'react';
import {Outlet, useLocation} from "react-router-dom";

const RouterText = () => {
    const location = useLocation();
    return (
        <div>
            {`${location.pathname} RouterText`}
            <Outlet/>
        </div>
    );
};

export default RouterText;